import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false
import router from './router'
import store from './store'
// 引入mock模拟数据
import '@/mock/mockServe'

// 首页三级联动组件的全局注册
import TabNav from '@/components/tabNav'
import Pagination from '@/components/pagination'
// 第一个参数是组件的名字，第二个参数是组件
Vue.component("TabNav",TabNav)
Vue.component("PaginationIndex",Pagination)

new Vue({
  render: h => h(App),
  router,
  store,
  // 全局事件总线
  beforeCreate(){
    Vue.prototype.$bus=this;
  }
}).$mount('#app')
